package net.hn.hnms.biz.plan.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 重点工作执行
 */

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@TableName("execution_priority_work")
public class ExecutionPriorityWork extends BaseModel implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String priorityExecutionId;


    @ApiModelProperty(value = "计划id")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String planWorkId;

    @ApiModelProperty(value = "执行日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @DateTimeFormat( pattern = "yyyy-MM-dd")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date executionDate;

    @ApiModelProperty(value = "执行人")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String executorUserName;

    @ApiModelProperty(value = "执行任务描述")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String describe;

    @ApiModelProperty(value = "执行任务进度")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double executionProgress;

    @ApiModelProperty(value = "问题及原因")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String reason;

    @ApiModelProperty(value = "纠正措施")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String correctiveAction;

    @ApiModelProperty(value = "工作质量")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String workQuality;


    @ApiModelProperty(value = "备注")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String remark;

}
